package com.hx.er.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.hx.er.bean.base.AnnouncementBean;
import com.hx.er.bean.base.MessageBean;
import com.hx.er.bean.detail.MessageDetailBean;
import com.hx.er.dao.IContactDao;
import com.hx.er.mapper.IContactMapper;

public class ContactDaoImpl implements IContactDao {

	@Autowired
	private IContactMapper contactMapper;

	@Override
	public AnnouncementBean getAnnAliveByRestId(long restId) {
		return this.contactMapper.getAnnAliveByRestId(restId);
	}

	@Override
	public void insertAnnWithoutId(AnnouncementBean announcementBean) {
		this.contactMapper.insertAnnWithoutId(announcementBean);
	}

	@Override
	public int updateAnn(AnnouncementBean announcementBean) {
		return this.contactMapper.updateAnn(announcementBean);
	}

	@Override
	public int deleteAnn(AnnouncementBean announcementBean) {
		return this.contactMapper.deleteAnn(announcementBean);
	}

	@Override
	public AnnouncementBean getAnnAlive(AnnouncementBean announcementBean) {
		return this.contactMapper.getAnnAlive(announcementBean);
	}

	@Override
	public List<MessageDetailBean> getMsgDetailAliveList(Map<String, Object> conditions) {
		return this.contactMapper.getMsgDetailAliveList(conditions);
	}

	@Override
	public int getMsgDetailAliveCount(Map<String, Object> conditions) {
		return this.contactMapper.getMsgDetailAliveCount(conditions);
	}

	@Override
	public MessageDetailBean getMsgDetailAliveById(long msgId) {
		return this.contactMapper.getMsgDetailAliveById(msgId);
	}

	@Override
	public int ignoreMsg(MessageBean msgBean) {
		return this.contactMapper.ignoreMsg(msgBean);
	}

	@Override
	public int updateMsg(MessageBean msgBean) {
		return this.contactMapper.updateMsg(msgBean);
	}

	@Override
	public int reviveMsg(MessageBean msgBean) {
		return this.contactMapper.reviveMsg(msgBean);
	}

	@Override
	public int replyMsg(MessageBean msgBean) {
		return this.contactMapper.replyMsg(msgBean);
	}

	@Override
	public List<Map<Integer, Integer>> getFlowStatusCount(Map<String, String> conditions) {
		return this.contactMapper.getFlowStatusCount(conditions);
	}

	@Override
	public void insertMsgWithoutId(MessageBean msgBean) {
		this.contactMapper.insertMsgWithoutId(msgBean);
	}
}
